using SqlSugar;
using System;

namespace CoreShop.Model
{
    /// <summary>
    /// 会员充值规则表
    /// </summary>
    public class corecmsuserdepositrules
    {
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public System.Int64 id { get; set; }

        /// <summary>
        /// 总店id
        /// </summary>
        [SugarColumn(ColumnName = "corpId")]
        public System.Int32 corpId { get; set; }

        /// <summary>
        /// 门店Id
        /// </summary>
        [SugarColumn(ColumnName = "storeId")]
        [SplitField]
        public System.Int32 storeId { get; set; }

        /// <summary>
        /// 1充值 2充次数
        /// </summary>
        [SugarColumn(ColumnName = "depositType")]
        public System.Int32 depositType { get; set; }

        /// <summary>
        /// 充值金额
        /// </summary>
        [SugarColumn(ColumnName = "depositMoney")]
        public System.Decimal depositMoney { get; set; }

        /// <summary>
        /// 赠送金额
        /// </summary>
        [SugarColumn(ColumnName = "giveMoney")]
        public System.Decimal giveMoney { get; set; }

        /// <summary>
        /// 赠送积分
        /// </summary>
        [SugarColumn(ColumnName = "giveIntegral")]
        public System.Int32 giveIntegral { get; set; }

        /// <summary>
        /// 上级赠送积分
        /// </summary>
        [SugarColumn(ColumnName = "upGiveIntegral")]
        public System.Int32 upGiveIntegral { get; set; }

        /// <summary>
        /// 上上级赠送积分
        /// </summary>
        [SugarColumn(ColumnName = "twoUpGiveIntegral")]
        public System.Int32 twoUpGiveIntegral { get; set; }

        /// <summary>
        /// 状态  值：1正常 2停用
        /// </summary>
        [SugarColumn(ColumnName = "depositRuleStatus")]
        public System.Int32 depositRuleStatus { get; set; }

        /// <summary>
        /// 是否累加  值：1是 2否
        /// </summary>
        [SugarColumn(ColumnName = "isAccumulation")]
        public System.Int32 isAccumulation { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(ColumnName = "startTime", IsNullable = false)]
        public System.DateTime? startTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [SugarColumn(ColumnName = "endTime", IsNullable = true)]
        public System.DateTime? endTime { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [SugarColumn(ColumnName = "isDelete", IsNullable = false)]
        public System.Boolean isDelete { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "createTime", IsNullable = true)]
        public System.DateTime? createTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "remark", IsNullable = true)]
        public System.String remark { get; set; }

        /// <summary>
        /// 卡券id
        /// </summary>
        [SugarColumn(ColumnName = "couponId", IsNullable = true)]
        public System.Int64? couponId { get; set; }

        /// <summary>
        /// 卡券数量
        /// </summary>
        [SugarColumn(ColumnName = "couponCount", IsNullable = true)]
        public System.Int32? couponCount { get; set; }

        /// <summary>
        /// 会员分类Id
        /// </summary>
        [SugarColumn(ColumnName = "userCategoryId", IsNullable = true)]
        public System.Int64? userCategoryId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "modifyTime", IsNullable = true)]
        public System.Int64 modifyTime { get; set; } = 0;

        /// <summary>
        /// 限制参与充值活动的用户等级对象
        /// </summary>
        [SugarColumn(ColumnDescription = "限制参与充值活动的用户等级对象", IsNullable = true)]
        public string userGrades { get; set; } = string.Empty;
    }
}
